home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
mscfunct
/
crt_scrl.c
< prev
next >
Wrap
C/C++ Source or Header
|
1987-05-09
|
407b
|
16 lines
#include <dos.h>
void crt_scroll( top, bottom, left, right, lines )
int top, bottom, left, right, lines;
{
union REGS regs;
regs.h.ah = (lines > 0 ) ? 6 : 7;
regs.h.al = (lines > 0 ) ? lines : -lines;
regs.h.ch = top; regs.h.cl = left;
regs.h.dh = bottom; regs.h.dl = right;
regs.h.bh = 7; /* white on black default */
int86( 0x10, ®s, ®s );
}